import { AppConfig } from '@/utils/back/appConfig';
import { NextRequest, NextResponse } from 'next/server';

async function configHook(req: NextRequest, isAjax = false) {
  const data = await AppConfig.refresh(req.url);

  return NextResponse.json({ success: true, message: 'ok3', data });
}

export async function GET(req: NextRequest) {
  return await configHook(req);
}
